package cn.fly.dao;

import java.util.List;

import cn.fly.entity.Account;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

public class AccountDaoImpl extends BaseDao  implements AccountDao {
	
	protected Log log=LogFactory.getLog(this.getClass());
	 
	@Override
	public List<Account> findAccount(String username) {
		String sql="select * from account where username=?";  
		
		log.info(">>>>>>>>>>>>>====================="+this.getJdbcTemplate());
        List alist = this.getJdbcTemplate().queryForList(sql, 1) ;
        
        log.error(">>>>>>>>>>>>>"+alist.size());
        
        return alist;
	}

}
